package com.wanmait.demo.service.impl;

import com.github.pagehelper.PageInfo;
import com.wanmait.demo.mapper.AddressMapper;
import com.wanmait.demo.pojo.Address;
import com.wanmait.demo.service.AddressService;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import javax.annotation.Resource;
import java.util.List;
@Service
@Transactional(rollbackFor = Exception.class)
public class AddressServiceimpl implements AddressService {
    @Resource
    private AddressMapper addressMapper;
    @Override
    public void insert(Address address) {
//            addressMapper.insert(address);
    }

    @Override
    public void delete(Integer id) {

    }

    @Override
    public void delete(String ids) {

    }

    @Override
    public void update(Address object) {

    }

    @Override
    public Address findById(Integer id) {
        return null;
    }

    @Override
    public List<Address> findAll() {
        return null;
    }

    @Override
    public PageInfo<Address> findPage(int pageNum, int pageSize) {
        return null;
    }

    @Override
    public List<Address> selectListByUserId(Integer userid) {
        return null;
    }

    @Override
    public void updateDefaultAddress(Address object, Integer userinfoId) {

    }

    @Override
    public void deleteOneAddress(Address address) {

    }

    @Override
    public Integer queryExistAddress(Integer userinfoId) {
        return null;
    }

    @Override
    public void insertOneAddress(Address address) {

    }

    @Override
    public void clearCache() {

    }

    @Override
    public void insertorderaddress(Integer userid, Integer dizhi, Integer addressid, String addressinfo) {

    }

    @Override
    public Integer selectmaxaddressid(Integer userid) {
        return null;
    }

    @Override
    public void updateuseraddressid(Integer id) {

    }

    @Override
    public void deleteotheraddressid(Integer userid) {

    }
}
